#include "../include/ConditionThreadMutex.h"
#include <iostream>

void handle_signal (int)
{
    std::cout << "recv signal" << std::endl;
}
int main ()
{
    signal (SIGINT, handle_signal);
    ThreadMutex m;
    ConditionThreadMutex cond(m);
    cond.signal ();
    TimeValue tv(1);
    std::cout << cond.wait (&tv) << std::endl;
    std::cout << errno << std::endl;
    return 0;
}
